package applicationModels;

import org.uqbar.commons.utils.Observable;

@Observable
public class IntObservable {
	
	private int valor;

	public IntObservable(int valor) {
		super();
		this.valor = valor;
	}

	public int getValor() {
		return valor;
	}

	public void setValor(int valor) {
		this.valor = valor;
	}
	
	@Override
	public String toString() {
		if(this.getValor()<10){
			return "0" + this.getValor() + ":00";
		}else{
			return this.getValor() + ":00";
		}
		
	}
	
	

}
